package com.rc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.rc.entity.GenTable;
import com.rc.entity.GenTableField;
import com.rc.mapper.GenTableFieldMapper;
import com.rc.service.GenTableFieldService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 代码生成表字段 服务实现类
 * </p>
 *
 * @author rc
 * @since 2025-04-12
 */
@Service
public class GenTableFieldServiceImpl extends ServiceImpl<GenTableFieldMapper, GenTableField> implements GenTableFieldService {

    @Override
    public List<GenTableField> getByTableId(String tableId) {
        QueryWrapper<GenTableField> genTableFieldQueryWrapper = new QueryWrapper<>();
        genTableFieldQueryWrapper.eq("tableId",tableId);
        List<GenTableField> list = list(genTableFieldQueryWrapper);
        return list;
    }
}
